package com.sinothk.cloud.mq.websocket.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel("IM实体")
public class IMBean {

    @ApiModelProperty(value = "发起人userId")
    private String fromId;
    @ApiModelProperty(value = "接收人userId：单聊必传")
    private String toId;
    @ApiModelProperty(value = "接收人userId集合：群聊必传")
    private String[] toIds;
    @ApiModelProperty(value = "消息类型：SINGLE(单聊)、GROUP(群聊)")
    private String msgType;

    @ApiModelProperty(value = "内容", required = true)
    private String content;
    @ApiModelProperty(value = "内容类型: TXT(文本)、IMG(图片)、VIDEO(视频)、AUDIO(音频)")
    private String contentType;

    public IMBean() {
    }

    public IMBean(String fromId, String toId, String content) {
        this.fromId = fromId;
        this.toId = toId;
        this.content = content;
    }

    public IMBean(String fromId, String[] toIds, String content) {
        this.fromId = fromId;
        this.content = content;
        this.toIds = toIds;
    }

    public String getFromId() {
        return fromId;
    }

    public void setFromId(String fromId) {
        this.fromId = fromId;
    }

    public String getToId() {
        return toId;
    }

    public void setToId(String toId) {
        this.toId = toId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String[] getToIds() {
        return toIds;
    }

    public void setToIds(String[] toIds) {
        this.toIds = toIds;
    }

    public String getMsgType() {
        return msgType;
    }

    public void setMsgType(String msgType) {
        this.msgType = msgType;
    }

    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }
}
